<!--
 * @Description: BOM
 * @Author: admin
 * @Date: 2021-06-09 09:39:15
 * @LastEditors: admin
 * @LastEditTime: 2021-06-09 09:53:17
-->

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>

</body>
<script>
  setTimeout(
    function () {
      // alert("hello");
      // var result1 = confirm("你确定xxx吗？");
      // console.log(result1);
      // var result = prompt("请输入你的姓名");
      // console.log(result);
      // location.href = "https://baidu.com"
      location.assign("https://baidu.com")
    }, 500
  )
  // setInterval(
  //   function () {
  //     console.log("每一秒调用一次")
  //   }, 1000
  // )
</script>

</html>